package com.leha.mp.core.services;

import com.leha.mp.core.entity.mybatis.PlOrder;
import com.leha.mp.core.entity.vo.OrderDetailVo;

import java.util.Date;

public interface OrderServices {
    PlOrder GenOrder(Integer uid, Integer did, Integer pid, String cip, String extraData);
    void OrderPaySuccess(String orderNo, Date payTime, String transactionId, String result, String msg);

    boolean cancelOrder(Integer userId, Integer orderId);
    boolean cancelConsulting(Integer consultingId);
    boolean cancelOrder(Integer orderId);

    void OrderRefundSuccess(String refundNo, String result, String msg);

    Integer getOrderConsulting(Integer orderId);


    OrderDetailVo getOrderDetail(Integer orderId);

    Boolean cancelConsultingByUser(Integer consultingId);
}
